home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / win / ch16 / 16fig03.wrl < prev    next >
Text File  |  1996-09-23  |  2KB  |  57 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.         DEF Burst Shape {
  8.             # no appearance, use emissive coloring
  9.             geometry IndexedLineSet {
  10.                 coord Coordinate {
  11.                     point [
  12.                          0.00  0.00  0.00,   1.00  0.00  0.00,
  13.                          0.92  0.38  0.00,   0.71  0.71  0.00,
  14.                          0.38  0.92  0.00,   0.00  1.00  0.00,
  15.                         -0.38  0.92  0.00,  -0.71  0.71  0.00,
  16.                         -0.92  0.38  0.00,  -1.00  0.00  0.00,
  17.                         -0.92 -0.38  0.00,  -0.71 -0.71  0.00,
  18.                         -0.38 -0.92  0.00,   0.00 -1.00  0.00,
  19.                          0.38 -0.92  0.00,   0.71 -0.71  0.00,
  20.                          0.92 -0.38  0.00,
  21.                     ]
  22.                 }
  23.                 coordIndex [
  24.                     0,  1, -1,   0,  2, -1,
  25.                     0,  3, -1,   0,  4, -1,
  26.                     0,  5, -1,   0,  6, -1,
  27.                     0,  7, -1,   0,  8, -1,
  28.                     0,  9, -1,   0, 10, -1,
  29.                     0, 11, -1,   0, 12, -1,
  30.                     0, 13, -1,   0, 14, -1,
  31.                     0, 15, -1,   0, 16, -1
  32.                 ]
  33.                 colorPerVertex TRUE
  34.                 color Color {
  35.                     color [
  36.                         1.0 1.0 0.0,  # burst center color
  37.                         1.0 0.3 0.3   # burst ends color
  38.                     ]
  39.                 }
  40.                 colorIndex [
  41.                     0,  1,  0,   0,  1,  0,
  42.                     0,  1,  0,   0,  1,  0,
  43.                     0,  1,  0,   0,  1,  0,
  44.                     0,  1,  0,   0,  1,  0,
  45.                     0,  1,  0,   0,  1,  0,
  46.                     0,  1,  0,   0,  1,  0,
  47.                     0,  1,  0,   0,  1,  0,
  48.                     0,  1,  0,   0,  1,  0,
  49.                 ]
  50.             }
  51.         },
  52.         Transform { rotation 0.0 1.0 0.0  0.785 children USE Burst },
  53.         Transform { rotation 0.0 1.0 0.0  1.57  children USE Burst },
  54.         Transform { rotation 0.0 1.0 0.0  2.355 children USE Burst }
  55.     ]
  56. }
  57.